#ifndef GY_VARIANT_H
#define GY_VARIANT_H

#include <QObject>
#include <QVariant>

class GY_Variant : public QObject, public QVariant
{
    Q_OBJECT
public:
    explicit GY_Variant(QObject *parent = nullptr);
    GY_Variant(const GY_Variant &other);
    ~GY_Variant();
    /**
     * @brief operator = 重载=运算符
     * @param value 赋值
     * @return 返回新值
     */
    GY_Variant& operator=(const QVariant &value);
    GY_Variant& operator=(const GY_Variant &value);

signals:
    //!重载=号运算符里面发送的信号
    void sendValueSig(const QVariant &value);
};
Q_DECLARE_METATYPE(GY_Variant);
#endif // GY_VARIANT_H
